/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 *
 * @author robson
 */

@Entity
@Table(name="subtema")
public class Subtema implements Serializable {
    
    @Id
    @Column(name = "id_subtema", nullable = false)
    @SequenceGenerator(name = "seq_subtema", sequenceName = "subtema_id_subtema_seq")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_subtema")
    private long subtemaId;
    
    @Column(name="id_tema")
    private long temaId;

    @Column(name="nome_subtema")    
    private String nomeSubTema;
    
    @Transient
    private String icon;

    public Subtema() {
        
    }

    public long getSubtemaId() {
        return subtemaId;
    }

    public void setSubtemaId(long subtemaId) {
        this.subtemaId = subtemaId;
    }

    
    public String getNomeSubTema() {
        return nomeSubTema;
    }

    public void setNomeSubTema(String nomeSubTema) {
        this.nomeSubTema = nomeSubTema;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    
    public long getTemaId() {
        return temaId;
    }

    public void setTemaId(long temaId) {
        this.temaId = temaId;
    }
}
